#!/bin/sh

if [ "$(cat /etc/yum.conf|grep 'http_caching=packages')" == "" ] ; then
	echo "Process to modified /etc/yum.conf"

	echo "" >> /etc/yum.conf
	echo "### ST -- http_caching: all, packages or none; default all" >> /etc/yum.conf
	echo "http_caching=packages" >> /etc/yum.conf
	echo "timeout=30" >> /etc/yum.conf
else
	echo "Modified already exist in /etc/yum.conf"
fi